<?=n_mod('skin')->pageHead('模板信息', array()) ?>
<div class="n-row n-margin-default-top n-margin-default-bottom">
	<form method="post" action="<?=n_url('nconfig','save')?>">
		<div class="a-form">
			<label class="n-col-2 n-nopadding-left">名称</label>
			<div class="n-col-6 n-nopadding">
				<input type="text" name="name"
				value="<?=empty($data['name']) ? '' : $data['name']?>" />
			</div>
			<div class="n-col-4"></div>
		</div>
		<div class="a-form">
			<label class="n-col-2 n-nopadding-left">插件码</label>
			<div class="n-col-1 n-nopadding">
				<input type="text" name="pevent"
				value="<?=empty($data['pevent']) ? '' : $data['pevent']?>" />
			</div>
			<label class="n-col-1 n-nopadding-left">配置码</label>
			<div class="n-col-1 n-nopadding">
				<input type="text" name="ckey"
				value="<?=empty($data['ckey']) ? '' : $data['ckey']?>" />
			</div>
			<label class="n-col-2 n-nopadding-left">单例模式</label>
			<div class="n-col-1 n-nopadding">
				<input type="radio" name="sington" value="Y"
				<?=$data['is_sington'] == 'Y' ? 'checked="checked"' : ''?>/>是
				<div class="n-col-1"></div>
				<input type="radio" name="sington" value="N"
				<?=$data['is_sington'] == 'N' ? 'checked="checked"' : ''?>/>否
			</div>
			<div class="n-col-4"></div>
		</div>
		<div class="a-form">
			<label class="n-col-2 n-nopadding-left">描述</label>
			<div class="n-col-6 n-nopadding">
				<textarea name="descript" style="width:100%;resize:none"><?=empty($data['descript']) ? '' : $data['descript']?></textarea>
			</div>
			<div class="n-col-4"></div>
		</div>
		<div class="n-col-2">
		<?php
		if (! empty($data)) :
		?>
			<input type="hidden" name="id" value="<?=$data['id']?>" />
		<?php
		endif;
		?>
		</div>
		<div class="n-col-4 n-nopadding">
			<div class="a-form">
				<button type="submit" class="a-button-green">
					<i class="fa fa-2x fa-save" style="color:#fff;"></i>
				</button>
			</div>
		</div>
	</form>
	<div class="n-col-2 n-nopadding n-padding-default-left">
		<button class="a-button-default">
			<a target="_self" href="<?=n_url('nconfig', 'index') ?>">
				<i class="fa fa-2x fa-remove" style="display:block;"></i>
			</a>
		</button>
	</div>
</div>
